package com.huawei.m2m.cig.decoder.protocol;

public class LittleEndianInputBuffer extends InputBuffer {
	public LittleEndianInputBuffer(byte[] paramArrayOfByte) {
		super(paramArrayOfByte);
	}

	public LittleEndianInputBuffer(byte[] paramArrayOfByte, int paramInt1, int paramInt2) {
		super(paramArrayOfByte, paramInt1, paramInt2);
	}

	public int getInt16() {
		int i = getByte();
		int j = getByte();

		return j << 8 | i;
	}

	public int getInt16Signed() {
		int i = getByte();
		int j = getByteSigned();

		return j << 8 | i;
	}

	public int getInt24() {
		int i = getByte();
		int j = getByte();
		int k = getByte();

		return k << 16 | j << 8 | i;
	}

	public int getInt24Signed() {
		int i = getByte();
		int j = getByte();
		int k = getByteSigned();

		return k << 16 | j << 8 | i;
	}

	public int getInt32() {
		int i = getByte();
		int j = getByte();
		int k = getByte();
		int m = getByte();

		return m << 24 | k << 16 | j << 8 | i;
	}

	public int getInt32Signed() {
		int i = getByte();
		int j = getByte();
		int k = getByte();
		int m = getByteSigned();

		return m << 24 | k << 16 | j << 8 | i;
	}
}
